package com.zy.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andZyNameIsNull() {
            addCriterion("zy_name is null");
            return (Criteria) this;
        }

        public Criteria andZyNameIsNotNull() {
            addCriterion("zy_name is not null");
            return (Criteria) this;
        }

        public Criteria andZyNameEqualTo(String value) {
            addCriterion("zy_name =", value, "zyName");
            return (Criteria) this;
        }

        public Criteria andZyNameNotEqualTo(String value) {
            addCriterion("zy_name <>", value, "zyName");
            return (Criteria) this;
        }

        public Criteria andZyNameGreaterThan(String value) {
            addCriterion("zy_name >", value, "zyName");
            return (Criteria) this;
        }

        public Criteria andZyNameGreaterThanOrEqualTo(String value) {
            addCriterion("zy_name >=", value, "zyName");
            return (Criteria) this;
        }

        public Criteria andZyNameLessThan(String value) {
            addCriterion("zy_name <", value, "zyName");
            return (Criteria) this;
        }

        public Criteria andZyNameLessThanOrEqualTo(String value) {
            addCriterion("zy_name <=", value, "zyName");
            return (Criteria) this;
        }

        public Criteria andZyNameLike(String value) {
            addCriterion("zy_name like", value, "zyName");
            return (Criteria) this;
        }

        public Criteria andZyNameNotLike(String value) {
            addCriterion("zy_name not like", value, "zyName");
            return (Criteria) this;
        }

        public Criteria andZyNameIn(List<String> values) {
            addCriterion("zy_name in", values, "zyName");
            return (Criteria) this;
        }

        public Criteria andZyNameNotIn(List<String> values) {
            addCriterion("zy_name not in", values, "zyName");
            return (Criteria) this;
        }

        public Criteria andZyNameBetween(String value1, String value2) {
            addCriterion("zy_name between", value1, value2, "zyName");
            return (Criteria) this;
        }

        public Criteria andZyNameNotBetween(String value1, String value2) {
            addCriterion("zy_name not between", value1, value2, "zyName");
            return (Criteria) this;
        }

        public Criteria andBqIsNull() {
            addCriterion("bq is null");
            return (Criteria) this;
        }

        public Criteria andBqIsNotNull() {
            addCriterion("bq is not null");
            return (Criteria) this;
        }

        public Criteria andBqEqualTo(String value) {
            addCriterion("bq =", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqNotEqualTo(String value) {
            addCriterion("bq <>", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqGreaterThan(String value) {
            addCriterion("bq >", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqGreaterThanOrEqualTo(String value) {
            addCriterion("bq >=", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqLessThan(String value) {
            addCriterion("bq <", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqLessThanOrEqualTo(String value) {
            addCriterion("bq <=", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqLike(String value) {
            addCriterion("bq like", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqNotLike(String value) {
            addCriterion("bq not like", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqIn(List<String> values) {
            addCriterion("bq in", values, "bq");
            return (Criteria) this;
        }

        public Criteria andBqNotIn(List<String> values) {
            addCriterion("bq not in", values, "bq");
            return (Criteria) this;
        }

        public Criteria andBqBetween(String value1, String value2) {
            addCriterion("bq between", value1, value2, "bq");
            return (Criteria) this;
        }

        public Criteria andBqNotBetween(String value1, String value2) {
            addCriterion("bq not between", value1, value2, "bq");
            return (Criteria) this;
        }

        public Criteria andSizeIsNull() {
            addCriterion("size is null");
            return (Criteria) this;
        }

        public Criteria andSizeIsNotNull() {
            addCriterion("size is not null");
            return (Criteria) this;
        }

        public Criteria andSizeEqualTo(String value) {
            addCriterion("size =", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeNotEqualTo(String value) {
            addCriterion("size <>", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeGreaterThan(String value) {
            addCriterion("size >", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeGreaterThanOrEqualTo(String value) {
            addCriterion("size >=", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeLessThan(String value) {
            addCriterion("size <", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeLessThanOrEqualTo(String value) {
            addCriterion("size <=", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeLike(String value) {
            addCriterion("size like", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeNotLike(String value) {
            addCriterion("size not like", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeIn(List<String> values) {
            addCriterion("size in", values, "size");
            return (Criteria) this;
        }

        public Criteria andSizeNotIn(List<String> values) {
            addCriterion("size not in", values, "size");
            return (Criteria) this;
        }

        public Criteria andSizeBetween(String value1, String value2) {
            addCriterion("size between", value1, value2, "size");
            return (Criteria) this;
        }

        public Criteria andSizeNotBetween(String value1, String value2) {
            addCriterion("size not between", value1, value2, "size");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(Date value) {
            addCriterion("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(Date value) {
            addCriterion("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(Date value) {
            addCriterion("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(Date value) {
            addCriterion("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(Date value) {
            addCriterion("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(Date value) {
            addCriterion("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<Date> values) {
            addCriterion("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<Date> values) {
            addCriterion("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(Date value1, Date value2) {
            addCriterion("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(Date value1, Date value2) {
            addCriterion("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andJfIsNull() {
            addCriterion("jf is null");
            return (Criteria) this;
        }

        public Criteria andJfIsNotNull() {
            addCriterion("jf is not null");
            return (Criteria) this;
        }

        public Criteria andJfEqualTo(String value) {
            addCriterion("jf =", value, "jf");
            return (Criteria) this;
        }

        public Criteria andJfNotEqualTo(String value) {
            addCriterion("jf <>", value, "jf");
            return (Criteria) this;
        }

        public Criteria andJfGreaterThan(String value) {
            addCriterion("jf >", value, "jf");
            return (Criteria) this;
        }

        public Criteria andJfGreaterThanOrEqualTo(String value) {
            addCriterion("jf >=", value, "jf");
            return (Criteria) this;
        }

        public Criteria andJfLessThan(String value) {
            addCriterion("jf <", value, "jf");
            return (Criteria) this;
        }

        public Criteria andJfLessThanOrEqualTo(String value) {
            addCriterion("jf <=", value, "jf");
            return (Criteria) this;
        }

        public Criteria andJfLike(String value) {
            addCriterion("jf like", value, "jf");
            return (Criteria) this;
        }

        public Criteria andJfNotLike(String value) {
            addCriterion("jf not like", value, "jf");
            return (Criteria) this;
        }

        public Criteria andJfIn(List<String> values) {
            addCriterion("jf in", values, "jf");
            return (Criteria) this;
        }

        public Criteria andJfNotIn(List<String> values) {
            addCriterion("jf not in", values, "jf");
            return (Criteria) this;
        }

        public Criteria andJfBetween(String value1, String value2) {
            addCriterion("jf between", value1, value2, "jf");
            return (Criteria) this;
        }

        public Criteria andJfNotBetween(String value1, String value2) {
            addCriterion("jf not between", value1, value2, "jf");
            return (Criteria) this;
        }

        public Criteria andXzlIsNull() {
            addCriterion("xzl is null");
            return (Criteria) this;
        }

        public Criteria andXzlIsNotNull() {
            addCriterion("xzl is not null");
            return (Criteria) this;
        }

        public Criteria andXzlEqualTo(String value) {
            addCriterion("xzl =", value, "xzl");
            return (Criteria) this;
        }

        public Criteria andXzlNotEqualTo(String value) {
            addCriterion("xzl <>", value, "xzl");
            return (Criteria) this;
        }

        public Criteria andXzlGreaterThan(String value) {
            addCriterion("xzl >", value, "xzl");
            return (Criteria) this;
        }

        public Criteria andXzlGreaterThanOrEqualTo(String value) {
            addCriterion("xzl >=", value, "xzl");
            return (Criteria) this;
        }

        public Criteria andXzlLessThan(String value) {
            addCriterion("xzl <", value, "xzl");
            return (Criteria) this;
        }

        public Criteria andXzlLessThanOrEqualTo(String value) {
            addCriterion("xzl <=", value, "xzl");
            return (Criteria) this;
        }

        public Criteria andXzlLike(String value) {
            addCriterion("xzl like", value, "xzl");
            return (Criteria) this;
        }

        public Criteria andXzlNotLike(String value) {
            addCriterion("xzl not like", value, "xzl");
            return (Criteria) this;
        }

        public Criteria andXzlIn(List<String> values) {
            addCriterion("xzl in", values, "xzl");
            return (Criteria) this;
        }

        public Criteria andXzlNotIn(List<String> values) {
            addCriterion("xzl not in", values, "xzl");
            return (Criteria) this;
        }

        public Criteria andXzlBetween(String value1, String value2) {
            addCriterion("xzl between", value1, value2, "xzl");
            return (Criteria) this;
        }

        public Criteria andXzlNotBetween(String value1, String value2) {
            addCriterion("xzl not between", value1, value2, "xzl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}